package com.song.oa.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author tonysong
 * @since 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_mail_log")
public class MailLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 消息id
     */
    @TableId(value = "msgId", type = IdType.AUTO)
    private String msgid;

    /**
     * 接收员工id
     */
    private Integer eid;

    /**
     * 状态（0:消息投递中 1:投递成功 2:投递失败）
     */
    private Integer status;

    /**
     * 路由键
     */
    @TableField("routeKey")
    private String routekey;

    /**
     * 交换机
     */
    private String exchange;

    /**
     * 重试次数
     */
    private Integer count;

    /**
     * 重试时间
     */
    @TableField("tryTime")
    private LocalDateTime trytime;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createtime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private LocalDateTime updatetime;


}
